﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="usermanage_update.aspx.cs" Inherits="uswinweb.admin.usermanage_update" %>
<%@ Register TagPrefix="win" TagName="pop_complist" Src="../datacontrol/pop_complist.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="../css/comm.css" rel="stylesheet" type="text/css" />
<link href="../css/lightview.css" type="text/css" rel="stylesheet" />
<script src="../js/jquery.js" type="text/javascript"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="../js/lightview.js" type="text/javascript"></script>
<script src="../js/effects.js" type="text/javascript"></script>
<script src="../js/table.js" type="text/javascript"></script>
<script src="../js/jquery_common.js" type="text/javascript"></script>
<script src="../js/jquery-choose.js" type="text/javascript"></script>
</head>
<body>
<div class="repcot" id="repcot">
<form id="form1" runat="server" action="" method="post" >
	<table cellpadding="0" cellspacing="0" border="0" class="adtb">
		<thead>
			<tr>
				<td colspan="2" style="position:relative;">修改用户信息--<%=uInfo.lname %></td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td width="15%"><p class="zi1">中文名：</p></td>
				<td>
				<p class="zi2"><input id="uLnametxt" name="uLnametxt" value="<%= uInfo.rname%>" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:50px;" /></p>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">英文名：</p></td>
				<td>
				<p class="zi2">
                <input id="uEnametxt" name="uEnametxt" value="<%= uInfo.ename%>" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:50px;" />
                </p>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">所属用户组：</p></td>
                <td>
				<p class="zi2">
                    <select id="group_hidd_luffy" name="group_hidd_luffy">
                    <%
                        LTJ.Entity.ManageGroup opmodes = new LTJ.Entity.ManageGroup();
                        foreach (string cname in Enum.GetNames(opmodes.GetType()))
                        {
                            int s_value = Convert.ToInt16(Enum.Parse(opmodes.GetType(), cname));
                    %>
                    <option value="<%=s_value%>" <%if(s_value==uInfo.gid){%>selected="selected"<%}%>><%=LTJ.Entity.EnumType.GetGroupType(s_value)%></option>
                    <%
                        }        
                    %>
                    </select>					
				</p>
				</td>
			</tr>
            <tr>
				<td width="15%" ><p class="zi1">所属公司：</p></td>
                <td>
				<div class="zi2 popxg" style="z-index:99">
					<p class="ip1" id="comp_hidd_mino"><%=GetCompName(uInfo.cid)%></p>
                    <input type="hidden" id="comp_hidd_luffy" name="comp_hidd_luffy" value="<%=uInfo.cid %>" />
					<span class="an"></span>
					<div class="cn" style="width:300px;" id="comp_hidd_div">
						<div id="showdata2">
                        <win:pop_complist runat="server" ID="pop_complist1" />
                        </div>
					</div>
				</div>
				</td>
            </tr>
			<tr>
				<td width="15%"><p class="zi1">状态：</p></td>
				<td>
				<p class="zi2">
                <input type="radio" name="status_radio" id="status_radio1" <%=uInfo.status.ToString()=="1"?"checked":"" %> value="1" />正常
                <input type="radio" name="status_radio" id="status_radio2" <%=uInfo.status.ToString()=="1"?"":"checked" %> value="0" />暂停
                </p>
				</td>
			</tr>
			<tr>
				<td width="15%"><p class="zi1">权限：</p></td>
				<td>
				<p class="zi2">
                <input type="checkbox" name="authority1" id="authority1" <%=uInfo.authority.Contains("select")==true?"checked":"" %> value="select" />可查询
                <input type="checkbox" name="authority2" id="authority2" <%=uInfo.authority.Contains("update")==true?"checked":"" %> value="update" />可修改价格
                <input type="checkbox" name="authority3" id="authority3" <%=uInfo.authority.Contains("del")==true?"checked":"" %> value="del" />可删除价格
                </p>
				</td>
			</tr>
		</tbody>
	</table>
	<p class="insa">
		<span><input class="save" name="" type="submit" value="确 定" /></span>
	</p>
    </form>
</div>
</body>
<script type="text/javascript">
    jQuery(document).ready(function () {
        choose("popxg");
    });
</script>
</html>

